package calao.client;

import com.google.gwt.user.client.ui.Widget;

public interface DesktopListener 
{

	/** Called just before a ViewPanel is made visible.
	 * This method is called each time a new desktop view is created for a widget as a result 
	 * from calls to {@link Desktop#setView(Widget)}, {@link Desktop#stackView(Widget)} 
	 * or derived methods.
	 * This method is actually called <em>before</em> the new view is made visible.
	 */
	void onDisplay(ViewPanel panel);
	
	/** Called just before a new DesktopPanel is made visible.
	 */
	void onDisplay(DesktopPanel panel);

}
